package com.neu.his.controller.SystemManage01.DepartmentManage;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.neu.his.core.Result;
import com.neu.his.entity.DepartmentType;
import com.neu.his.mapper.DeptTypeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Description: neu-his
 * <p>
 * Created by 31316 on 2020/7/16 13:39
 */
@RestController
@RequestMapping("/department_type")
public class DtManageController {
    @Autowired
    DeptTypeMapper deptTypeMapper;

    @GetMapping("/all")
    public Result<List<DepartmentType>> getall(){
        List<DepartmentType> list = deptTypeMapper.selectList(new QueryWrapper<DepartmentType>().ne("remove_mark",1));
        return Result.success(list);
    }
}
